package org.example.cake.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.example.cake.entity.Discussimg;

import java.util.List;

@Mapper
public interface DiscussimgMapper {
    int deleteByPrimaryKey(Integer imgid);

    int insert(Discussimg record);

    int insertSelective(Discussimg record);

    Discussimg selectByPrimaryKey(Integer imgid);

    int updateByPrimaryKeySelective(Discussimg record);

    int updateByPrimaryKey(Discussimg record);

    /**
     * 批量新增多张评论图片
     * @param discussimgs 评论图片对象
     * @return 受影响的行数
     */
    public boolean batchInserts(List<Discussimg> discussimgs);
}